﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NamingOnLessonUtility;

namespace NamingOnLessonRepositry
{
    public class RepositryFactory<T> where T : new()
    {
        public string TableName { get; private set; }
        public string Conn { get; private set; }
        public RepositryFactory()
        {
            T entity = new T();
            TableName = Repositry().GetTableName(entity);
            Conn = ConfigHelper.GetConnSettingsValue("connSql");
        }

        public IIRepositry<T> Repositry()
        {
            return new Repositry<T>();
        }
    }
}
